<template>
  <div>
    <el-select size="mini" v-model="selectedValue" placeholder="请选择">
      <el-option v-for="(val,index) in comp.config.optionList" :key="val.id" :label="val.label" :value="val.id">
      </el-option>
    </el-select>
    <slot />
  </div>
</template>

<script>
  export default {
    name: "selectView",
    components: {},
    props: ["comp"],
    data() {
      return {
        selectedValue: ''
      };
    },
    computed: {},
    methods: {},
    mounted() {

    }
  }
</script>,
<style scoped>

</style>
